package com.lzh.xianguang.service;

import com.lzh.xianguang.mapper.UsersMapper;
import com.lzh.xianguang.model.UsersInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Question UsersService
 * @Date 2023/3/5 10:03
 * @Solution
 */
@Service
public class UsersService {
    @Autowired
    UsersMapper usersMapper;
    public int add(String avatarUrl,String nickname,String phone,String password) {
        return usersMapper.add(avatarUrl,nickname,phone,password);
    }
    public UsersInfo getByPhone(String phone,String password) {
        return usersMapper.getByPhone(phone,password);
    }
}
